package cn.itcast.mongo.repository;

import cn.itcast.mongo.pojo.User;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

public interface UserRepository extends MongoRepository<User, Long> {
    User findByName(String name);

    User findByNameAndAge(String name, int age);

    List<User> findByAgeLessThan(int age);
}